import request from '@/utils/request';

// 请假记录接口
export function getLeaveRecord(params) {
    return request('/api/work/v1/attendance/leaveflow/getMyLeaveRecord', {
        method: 'POST',
        data: params
    });
}

// 缺卡记录接口
export function getmylack(params) {
    return request('/api/work/v1/attendance/lackcard/getMyLack', {
        method: 'POST',
        data: params
    });
}

// 迟到早退记录接口
export function getlate(params) {
    return request('/api/work/v1/attendance/exception/getLate', {
        method: 'POST',
        data: params
    });
}

// 缺勤记录接口
export function getabcense(params) {
    return request('/api/work/v1/attendance/exception/web/myAbsence', {
        method: 'POST',
        data: params
    });
}

// 打卡结果(员工用)接口
export function getMyattendrecord(params) {
    return request('/api/work/v1/attendance/signresult/getMyAttendanceRecord', {
        method: 'POST',
        data: params
    });
}

// 打卡详情接口
export function getMyattenddetail(params) {
    return request('/api/work/v1/attendance/signdetail', {
        method: 'POST',
        data: params
    });
}

// 字典列表接口
export function getTypeList(params) {
    return request('/api/oa/v1/common/select/typelist', {
        method: 'POST',
        params
    });
}
// 迟到早退类型列表
export function getLateList(params) {
    return request('/api/work/v1/attendance/ruleexception/latelist', {
        method: 'POST',
        data: params
    });
}
